package com.kingboy.kbg.demand.config;

import com.kingboy.kbg.commons.handler.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Create By 郭金宝 on 2018/6/26.<br>
 */
@Configuration
public class DemandConfiguration {
    /**
     * 全局异常处理
     *
     * @return
     */
    @Bean
    public GlobalExceptionHandler getGlobalExceptionHandler() {
        return new GlobalExceptionHandler();
    }

}
